package com.sunmnet.j2ee.entity.powerdb.designer;

import com.sunmnet.j2ee.entity.base.BaseAutoEntity;
import org.apache.commons.lang.builder.ReflectionToStringBuilder;
import org.apache.commons.lang.builder.ToStringStyle;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;

import javax.persistence.*;
import java.io.Serializable;


@javax.persistence.Entity
@Table(name = "pdm_diff_compare_detail")
@DynamicInsert(true)
@DynamicUpdate(true)
public class DiffCompareDetail extends BaseAutoEntity implements Serializable {


    private static final long serialVersionUID = 5123068814127731315L;
    private  Long diffRecordId;
     private  String content;
     private String object;
     private String script;

    @Override
    public String toString() {
        return new ReflectionToStringBuilder(
                this,
                ToStringStyle.DEFAULT_STYLE)
                .toString();
    }
    @Column(name = "script")
    public String getScript() {
        return script;
    }

    public void setScript(String script) {
        this.script = script;
    }
    @Column(name = "diff_record_id")
    public Long getDiffRecordId() {
        return diffRecordId;
    }

    public void setDiffRecordId(Long diffRecordId) {
        this.diffRecordId = diffRecordId;
    }
    @Column(name = "content")
    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    @Column(name = "object")
    public String getObject() {
        return object;
    }

    public void setObject(String object) {
        this.object = object;
    }
}
